package org.linlinjava.litemall.admin.vo.shop;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author wj
 * @date 2021/8/27 10:24
 */
public class PromotionUpdateVo {

    @NotBlank(message = "商品不能为空")
    private String goodsId;

    @NotNull(message = "分成比例不能为空")
    @DecimalMin(value = "0",message = "分成比例不能小于0")
    private BigDecimal promotion;

    @NotNull(message = "分成类型不能为空")
    private Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public BigDecimal getPromotion() {
        return promotion;
    }

    public void setPromotion(BigDecimal promotion) {
        this.promotion = promotion;
    }
}
